package cn.hua.trip.base.mapper;

import cn.hua.trip.base.domain.TravelCommend;
import cn.hua.trip.base.query.TravelCommendQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface TravelCommendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TravelCommend record);

    TravelCommend selectByPrimaryKey(Long id);

    List<TravelCommend> selectAll();


    List<TravelCommend> queryForList(TravelCommendQueryObject queryObject);

    int updateByPrimaryKey(TravelCommend record);


    List<Map> queryForListApp(TravelCommendQueryObject qo);

    List<Map> selectTravelCommendByState(TravelCommendQueryObject qo);

    PageInfo<TravelCommend> selectTravelCommendByType(TravelCommendQueryObject qo);
}